package user;

import book.BookList;
import opera.IOPeration;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DickYang
 * Date: 2023-05-28
 * Time: 10:38
 */
public abstract class User {
    protected String name;
    protected IOPeration[] ioPerations;

    public User(String name) {
        this.name = name;
    }

    public int menu() {
        return 0;
    };

    public void doWork(int chiose, BookList bookList) {
        this.ioPerations[chiose].work(bookList);
    }
}
